<?php
/**
 * Created by PhpStorm.
 * User: dust2
 * Date: 14-11-29
 * Time: 上午10:16
 */
class CartTableSeeder extends Seeder
{
    public function run(){

        DB::table('carts')->delete();

        Cart::create([
            'count' => 3,
            'user_id' => 1,
            'product_id' => 1,
            'created_at' => time(),
            'updated_at' => time()
        ]);

        Cart::create([
            'count' => 3,
            'user_id' => 1,
            'product_id' => 2,
            'created_at' => time(),
            'updated_at' => time()
        ]);


        Cart::create([
            'count' => 3,
            'user_id' => 2,
            'product_id' => 1,
            'created_at' => time(),
            'updated_at' => time()
        ]);


        Cart::create([
            'count' => 3,
            'user_id' => 2,
            'product_id' => 2,
            'created_at' => time(),
            'updated_at' => time()
        ]);
    }
}